package cas.ihep.pwa.evtgen;
import java.io.Serializable;

public class EvtId implements Serializable{

    private int id,alias;
    public EvtId(){
        id=alias=-1;
    }

    public EvtId(int id_){
        id=alias=id_;
    }

    public EvtId(int id_,int alias_){
        id=id_;
        alias=alias_;
    }
    public int getId(){
        return id;
    }

    public int getAlias(){
        return alias;
    }
    public boolean isAlias(){
        return id!=alias;
    }
    public boolean equals(Object obj){
        return obj instanceof EvtId && id==((EvtId)obj).id;
    }

    public static final EvtId defaultId=new EvtId();
}
